import request from "../utils/request";
export default {
    uploadImg(file, options?: { signal?: AbortSignal }) {
        const formData = new FormData();
        formData.append("file", file);
        return request.post("/upload/img", formData, {
            headers: {
                "Content-Type": "multipart/form-data"
            },
            ...options,
            method: "post"
        })
    }

}